package com.atguigu.logging.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author DongZH
 * @content
 * @since 2024/3/29 - 22:26
 **/
@RestController
public class HelloController {
    Logger logger = LoggerFactory.getLogger(getClass());

    @GetMapping("/hello")
    public String hello(String a, String b) {
        logger.warn("hello warn");
        logger.error("hello error");
        logger.info("hello info 参数a:{}, 参数b:{}", a, b);

        return "Hello info";
    }
}
